package meterMonitor.service;

import meterMonitor.mapper.AbnormalNoteMapper;
import meterMonitor.model.AbnormalNotePO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AbnormalNoteService {

    @Autowired
    private AbnormalNoteMapper noteMapper;

    public List<AbnormalNotePO> getAbnormalNote(Integer alertId) {
        return noteMapper.getAbnormalNote(alertId);
    }

    public void addNote(AbnormalNotePO notePO) {
        noteMapper.addNote(notePO);
    }
}
